<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="author" content="wangzhichao">
		<title>选择单位帐户</title>
		<script language="javascript" src="../script/common.js" type="text/javascript"></script>
		
		<!--动态js-->
		<script type="text/javascript">
			var qt = {};//单位qt
			var companyId;					//车队ID
			var comUniqueId;				//车队编号
			var companyName;				//车队名称
			var org = Common.cOrg();		//当前单位
			
			var stulist = [{code:"2",text:"正常"},{code:"3",text:"冻结"}];
			var liststatementNeed = [{code:true,text:"是"},{code:false,text:"否"}];
			var liststatementDate = [{code:"1",text:"一 "},{code:"2",text:"二 "},{code:"3",text:"三 "},{code:"4",text:"四 "},{code:"5",text:"五 "},{code:"6",text:"六 "},{code:"7",text:"七 "},{code:"8",text:"八 "},{code:"9",text:"九 "},{code:"10",text:"十 "},{code:"11",text:"十一 "},{code:"12",text:"十二 "},{code:"13",text:"十三 "},{code:"14",text:"十四 "},{code:"15",text:"十五 "},{code:"16",text:"十六 "},{code:"17",text:"十七 "},{code:"18",text:"十八 "},{code:"19",text:"十九 "},{code:"20",text:"二十 "},{code:"21",text:"二十一 "},{code:"22",text:"二十二 "},{code:"23",text:"二十三 "},{code:"24",text:"二十四 "},{code:"25",text:"二十五 "},{code:"26",text:"二十六 "},{code:"27",text:"二十七 "},{code:"28",text:"二十八 "},{code:"29",text:"二十九 "},{code:"30",text:"三十 "},{code:"31",text:"三十一 "}];
			//页面加载方法
			function load(){
				Eui.showNavigation();											// 显示导航栏
				if(org.orgLevel == Constants.ORG_LEVEL_CITY){
					$("unitForm").orgLevel.value = Constants.ORG_LEVEL_CITY;
				}else {
					 $("unitForm").organization.value = org.id;
				}
				createUnitTable();
				qt.showTable();
			}
			//单位客户帐户列表
			function createUnitTable(){                       	    //显示查询结果方法
				var columns = []						
				columns[0] = {type:"radio"}
				qt = new QueryTable("sel_unit_manage","unitForm","unitDataList",columns);
			}
			function onSave(){
				var obj = qt.getRadioValue(true);
				if(obj==null){
					showWarning("请选择一个单位");return;
				}
				dialogBackValue(obj);
			}
		</script>
	</head>
	
	<body onload="load()">
		<div id="listview">	
			<div class="searchForm">
				<form id="unitForm" name="unitForm">
				<input type="hidden" name="organization">
				<input type="hidden" name="orgLevel">
					<table cellSpacing="0" cellPadding="4" width="100%" border="0">
						<tr>
							<td><label>单位名称</label> <input type="text" name="oname"></td>
							<td><label>帐户编号</label> <input type="text" name="ooilNo" onBlur="checkV(this,'uniqueId')"></td>
							<td><button type="button" onclick="qt.showTable()">查 询</button></td>
						</tr>
					</table>
				</form>
			</div>
				<div id="unitDataList"></div>
		</div>
	</body>
</html>
